-- card: 17280 from stack: in -- bmap block id: 15504 -- flags: 0000 -- background id: 12278 -- name: trapword -- part 1 (button) -- low flags: 00 -- high flags: A003 -- rect: left=21 top=279 right=301 bottom=121 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Trap Word ----- HyperTalk script ----- on mouseUp put card field "name" into temp put trapword(temp) into card field "word" end mouseUp -- part 2 (field) -- low flags: 00 -- high flags: 2004 -- rect: left=127 top=278 right=304 bottom=284 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 3 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: name ----- HyperTalk script ----- on returninfield click at loc of card button "trap word" end returninfield on enterinfield end enterinfield -- part 3 (field) -- low flags: 01 -- high flags: 2004 -- rect: left=293 top=279 right=303 bottom=396 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 3 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: word -- part contents for background part 68 ----- text ----- The Trapword XFCN takes a trap name as a parameter and returns its Trap Word as a result. For example, put trapword(getnextevent) will put the value A970 (the trap word of GetNextEvent) into the message box. Note that the trap name should not begin with an underscore character. Also, the case of the characters in the trap name are not significant. Try the demo below for more details. Also see how this is used in the main disassembly card for another example. -- part contents for card part 3 ----- text ----- ???? -- part contents for card part 2 ----- text ----- _MenuChoice